Fix race conditions with MS-Windows lock files by using _sopen.
authorEli Zaretskii <eliz@gnu.org>
Wed, 27 Feb 2013 18:37:31 +0000 (20:37 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 27 Feb 2013 18:37:31 +0000 (20:37 +0200)
commit3a5be1e2bf8b8b096f7c656c99f644b7dd0c4bab
tree688f60c636ba0285f8f28d42882a5b0fe894c2dd
parent7ffd81ead0186289fe52c7748db3de74b2c099ef
Fix race conditions with MS-Windows lock files by using _sopen.

 src/filelock.c (create_lock_file) [WINDOWSNT]: Use _sopen with
 _SH_DENYRW flag, instead of emacs_open, to deny any other process
 access to the lock file until it is written and closed.
src/ChangeLog
src/filelock.c